PM3.6 - Donkey Kong - Action - 0x12e
Entry Script
- CreateInterrupt { interrupt_id: None, action: 0x130, requirement: (ButtonPress value(1)) }
- CreateInterrupt { interrupt_id: None, action: 0x12f, requirement: (BoolIsTrue RandomAccessBool (0x11)) }
- PreviousInterruptAddRequirement(AnimationHasLooped)
- CreateInterrupt { interrupt_id: None, action: Wait, requirement: ((LongtermAccessInt(Temp1) GreaterThanOrEqual InternalConstantInt (0x5dc0))) }
- PreviousInterruptAddRequirement(AnimationHasLooped)
- PreviousInterruptAddRequirement(OnGround)
- CreateInterrupt { interrupt_id: None, action: Fall, requirement: ((LongtermAccessInt(Temp1) GreaterThanOrEqual InternalConstantInt (0x5dc0))) }
- PreviousInterruptAddRequirement(AnimationHasLooped)
- PreviousInterruptAddRequirement(InAir)
- CreateInterrupt { interrupt_id: None, action: EscapeF, requirement: ((InternalConstantInt(ControlStickXAxisRelative) GreaterThanOrEqual InternalConstantInt (0xc4d))) }
- PreviousInterruptAddRequirement((InternalConstantInt (0x5209) LessThan InternalConstantInt (0x59fe)))
- PreviousInterruptAddRequirement(OnGround)
- CreateInterrupt { interrupt_id: None, action: EscapeB, requirement: ((InternalConstantInt(ControlStickXAxisRelativeReverse) GreaterThanOrEqual InternalConstantInt (0xc4d))) }
- PreviousInterruptAddRequirement((InternalConstantInt (0x5209) LessThan InternalConstantInt (0x59fe)))
- PreviousInterruptAddRequirement(OnGround)
- CallEveryFrame { thread_id: 9, script: 0x1f948 }
- BoolVariableSetTrue { variable: RandomAccessBool(EnableActionTransition) }
- loop Infinite times:
- if (OnGround)
- SetEdgeSlide(StayOn)
- UnknownEvent { namespace: 0x8, code: 0x1, unk1: 0x0, arguments: [Value(0)] }
- SetAirGround(6)
- if (BoolIsTrue RandomAccessBool(EnableActionTransition))
- ChangeSubactionRestartFrame(SpecialNLoop)
- else
- ChangeSubaction(SpecialNLoop)
- UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: InAir }] }
- else
- SetEdgeSlide(Airbourne)
- UnknownEvent { namespace: 0x8, code: 0x1, unk1: 0x0, arguments: [Value(4)] }
- SetAirGround(10)
- if (BoolIsTrue RandomAccessBool(EnableActionTransition))
- ChangeSubactionRestartFrame(SpecialAirNLoop)
- else
- ChangeSubaction(SpecialAirNLoop)
- UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: OnGround }] }
- BoolVariableSetFalse { variable: RandomAccessBool(EnableActionTransition) }
- LoopRest
Exit Script
- if ((InternalConstantInt(CurrentAction) NotEqual scalar(0)))
- IfStatementAnd ((InternalConstantInt(CurrentAction) NotEqual scalar(14)))
- IfStatementAnd ((InternalConstantInt(CurrentAction) NotEqual scalar(31)))
- IfStatementAnd ((InternalConstantInt(CurrentAction) NotEqual scalar(32)))
- IfStatementAnd ((InternalConstantInt(CurrentAction) NotEqual scalar(304)))
- IfStatementAnd ((InternalConstantInt(CurrentAction) NotEqual scalar(303)))
- IntVariableSet { variable: LongtermAccessInt(Temp1), value: 0 }